<h2><%= @title %></h2>
<%= error_messages_for 'user' %>
<% form_for :user do |form| %>
    <fieldset>
      <legend>Details</legend>
      <%= render :partial => "users/email_field_row", :locals => { :form => form } %>
      <%= render :partial => "users/name_field_row", :locals => { :form => form } %>
      <%= hidden_field_tag "attribute", "details", :id => nil %>
      <%= submit_tag "Update", :class => "submit" %>
    </fieldset>
<% end %>
<% form_for :user do |form| %>
	<fieldset>
	  <legend>Password</legend> 
	  <%= render :partial => "users/password_field_row",
		     :locals  => { :form => form, 
				   :field => "current_password",
				   :field_title => "Current Password" 
				 } %>
	  <%= render :partial => "users/password_field_row",
		     :locals  => { :form => form,
				   :field => "new_password",
				   :field_title => "New password" } %> 
	  <%= render :partial => "users/password_field_row",
		     :locals  => { :form => form, 
				   :field => "password_confirmation",
				   :field_title => "Confirm" } %>
	  <%= hidden_field_tag "attribute", "password", :id => nil %> 
	  <%= submit_tag "Update", :class => "submit" %>
	</fieldset>  
<% end %>
